﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WxxMail.BLL;
using WxxMail.Domain;
using WxxMail.IBLL;
using WxxMail.MVC.Models.Login;

namespace WxxMail.MVC.Factories
{
    public partial class LoginFactory:ILoginFactory
    {
        ILoginService _loginService = new LoginService();
        public bool LoginValue(LoginModel loginModel)
        {
            Login login = new Login();
            login.LoginId = loginModel.LoginId;
            login.Pass = loginModel.Pass;
            if (_loginService.isValue(login))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}